<!--<include file="public+header">-->

<script type="text/javascript" src="<!--{:__PUBLIC__}-->/js/calendar/datepicker/WdatePicker.js"></script>
<!--{~$sCalendarLang=Core_Extend::calendar()}-->

<!--{script}-->
checkForm(SubmitFormCheckform);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">编辑在线订单</a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>温馨提示：这里可以编辑在线订单数据。</li>
				</ul>
			</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved">编辑在线订单</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Admin_Extend::base(array('controller'=>'jiajuorder'))}-->">在线订单列表</a></li>
				</ul>
			</header>
			<form action="" method="post" id="jiajuorderAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label for="jiajucompany_id">商家&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#jiajucompany_id').val('');$('#jiajucompany_fullname').text('');">x</span></label>
						<input type="text" name="jiajucompany_id" id="jiajucompany_id" title="商家编号" value="<!--{:isset($oValue)?$oValue['jiajucompany_id']:''}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g, '');" class="left {required:true}" readonly="true" style="width:100px;"/>
						<input type="button" class="alt_btn" onclick="selectCompany('jiajucompany');" value="商家">&nbsp;
						<span id="jiajucompany_fullname" style="color:red;"><!--{:Core_Extend::getCompany(isset($oValue)?$oValue['jiajucompany_id']:0)}--></span>
						<div class="description input_tips">请选择商家！</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_realspace">建筑面积<em style="color:red">*</em></label>
						<input class="input-xlarge left {required:true,digits:true,min:0}" id="jiajuorder_realspace" name="jiajuorder_realspace" type="text" value="<!--{$oValue['jiajuorder_realspace']}-->">&nbsp;㎡
						<div class="description clear input_tips">选择你装修房子的建筑面积。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_spaceid">房屋类型<em style="color:red">*</em></label>
						<select name="jiajuorder_spaceid" id="jiajuorder_spaceid" class="{required:true}">
							<!--<foreach for="arrOrderClasss['space']">-->
							<option value="<!--{$value['jiajucompanyclass_id']}-->" <!--{if $oValue['jiajuorder_spaceid']==$value['jiajucompanyclass_id']}-->selected="selected"<!--{/if}-->><!--{$value['jiajucompanyclass_name']}--></option>
							<!--</foreach>-->
							<option value="" <!--{if !$oValue['jiajuorder_spaceid']}-->selected="selected"<!--{/if}-->>请选择您的装修类型</option>
						</select>
						<div class="description input_tips">选择你装修房子的房屋类型。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_type">装修需求<em style="color:red">*</em></label>
						<select name="jiajuorder_type" id="jiajuorder_type" class="{required:true}">
							<option value="" <!--{if !$oValue['jiajuorder_type']}-->selected="selected"<!--{/if}-->>请选择装修需求</option>
							<option value="1" <!--{if $oValue['jiajuorder_type']==1}-->selected="selected"<!--{/if}-->>申请设计</option>
							<option value="2" <!--{if $oValue['jiajuorder_type']==2}-->selected="selected"<!--{/if}-->>申请报价</option>
							<option value="3" <!--{if $oValue['jiajuorder_type']==3}-->selected="selected"<!--{/if}-->>申请设计和报价</option>
							<option value="4" <!--{if $oValue['jiajuorder_type']==4}-->selected="selected"<!--{/if}-->>申请报价设计和施工</option>
							<option value="5" <!--{if $oValue['jiajuorder_type']==5}-->selected="selected"<!--{/if}-->>申请监理</option>
							<option value="6" <!--{if $oValue['jiajuorder_type']==6}-->selected="selected"<!--{/if}-->>申请免费验房</option>
							<option value="7" <!--{if $oValue['jiajuorder_type']==7}-->selected="selected"<!--{/if}-->>申请装修套餐服务</option>
						</select>
						<div class="description input_tips">选择你的装修需求。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_biddingcode">招标编号</label>
						<input class="input-xlarge {digits:true,min:0}" id="jiajuorder_biddingcode" name="jiajuorder_biddingcode" type="text" value="<!--{$oValue['jiajuorder_biddingcode']}-->" style="width:70px;">
						<div class="description input_tips">如果已发布招标，选择你在网站发布的招标编号。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_time">预约商家服务时间<em style="color:red">*</em></label>
						<input class="input-xlarge {required:true}" id="jiajuorder_time" name="jiajuorder_time" type="text" value="<!--{:date('Y-m-d',$oValue['jiajuorder_time'])}-->" onclick="WdatePicker({el:'jiajuorder_time',skin:'ext',lang:'<!--{$sCalendarLang}-->',dateFmt:'yyyy-MM-dd'})" style="width:70px;">
						<div class="description input_tips">选择需要商家提供服务的时间。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_realname">真实姓名<em style="color:red">*</em></label>
						<input class="{required:true,maxlength:20}" id="jiajuorder_realname" name="jiajuorder_realname" type="text" value="<!--{$oValue['jiajuorder_realname']}-->">
						<div class="description input_tips">填写真实姓名（必须中文），才能享受投诉保障。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_mobile">手机号码<em style="color:red">*</em></label>
						<input class="{required:true,isMobile:true}" id="jiajuorder_mobile" name="jiajuorder_mobile" type="text" value="<!--{$oValue['jiajuorder_mobile']}-->">
						<div class="description input_tips">必须填写真实的手机号码，以便于商家联系你。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_qq">QQ<em style="color:red">*</em></label>
						<input class="{required:true,isQQ:true}" id="jiajuorder_qq" name="jiajuorder_qq" type="text" value="<!--{$oValue['jiajuorder_qq']}-->">
						<div class="description input_tips">必须填写真实的QQ号码，备用联系方式，以便于商家联系你。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_address">你的联系地址</label>
						<input class="{maxlength:150}" id="jiajuorder_address" name="jiajuorder_address" type="text" value="<!--{$oValue['jiajuorder_address']}-->">
						<div class="description input_tips"></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_remark">特别要求填写备注</label>
						<textarea class="{maxlength:250}" id="jiajuorder_remark" name="jiajuorder_remark" type="text" value="" style="width:500px;height:100px;"><!--{$oValue['jiajuorder_remark']}--></textarea>
						<div class="description input_tips"></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajuorder_status"><!--<lang package='Template'>-->状态<!--</lang>--></label>
						<select class="field" name="jiajuorder_status">
							<option value="1" <!--<if condition="!isset( $oValue ) || ( isset( $oValue ) && $oValue:jiajuorder_status==1)">-->selected<!--</if>-->>商家已确认</option>
							<option value="0" <!--<if condition="isset( $oValue ) && $oValue:jiajuorder_status==0">-->selected<!--</if>--> >等待确认</option>
							<option value="9" <!--<if condition="isset( $oValue ) && $oValue:jiajuorder_status==9">-->selected<!--</if>-->><!--<lang package='Template'>-->回收站<!--</lang>--></option>
							<option value="13" <!--<if condition="isset( $oValue ) && $oValue:jiajuorder_status==13">-->selected<!--</if>-->>订单关闭</option>
						</select>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="value" id="value" value="<!--<if condition="isset( $_GET['value'] )">--><!--{$_GET['value']}--><!--</if>-->"/>
						<input type="submit" id="submit_button" value="" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->